/*
 * @Author: 一路向阳 tt_sunzhenfeng@163.com
 * @Date: 2024-02-29 16:40:50
 * @LastEditors: 一路向阳 tt_sunzhenfeng@163.com
 * @LastEditTime: 2024-03-01 15:35:54
 * @FilePath: \react-simple-demo\react_simple\react\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
/*
 * @Author: 一路向阳 tt_sunzhenfeng@163.com
 * @Date: 2024-02-29 16:40:50
 * @LastEditors: 一路向阳 tt_sunzhenfeng@163.com
 * @LastEditTime: 2024-03-01 15:03:40
 * @FilePath: \react-simple-demo\react_simple\react\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import Component from './component';

function createElement(tag, attrs, ...childrens) {
    attrs = attrs || {};
    return {
        tag, //外层的标签
        attrs, //属性  是一个对象
        childrens, //是一个数组
        key: attrs.key || null
    }
}
export default {
    createElement,
    Component
};